package net.hn.hnms.biz.meeting.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "meeting_info", schema = "hygl", catalog = "huaneng-general")
public class MeetingInfo extends BaseModel implements Serializable {

    @ApiModelProperty(value = "id")
    @TableField(value = "meeting_id", fill = FieldFill.INSERT)
    @TableId(type = IdType.ASSIGN_UUID)
    private String  meetingId;


    @ApiModelProperty(value = "会议主题")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String meetingName;


    @ApiModelProperty(value = "会议日期")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date meetingDate;


    @ApiModelProperty(value = "发起人")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String meetingSponsor;

    @ApiModelProperty(value = "备注")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String remarks;

//    @JsonFormat(
//            pattern = "yyyy-MM-dd HH:mm:ss"
//
//    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    @ApiModelProperty("会议开始时间")
    private Date startTime;

//    @JsonFormat(
//            pattern = "yyyy-MM-dd HH:mm:ss"
//
//    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    @ApiModelProperty("会议结束时间")
    private Date endTime;

    @ApiModelProperty(value = "会议室ID")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String meetingRoomId;

    @ApiModelProperty(value = "文件名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String fileName;

    @ApiModelProperty(value = "文件路径")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String filePath;


    @ApiModelProperty(value = "状态")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String status;

    @ApiModelProperty(value = "文件Id")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String ossId;

//    @ApiModelProperty(value = "参会人员名称")
//    private String personName;
//
//    @ApiModelProperty(value = "参会人员Id")
//    private String personId;

}
